package com.ncloud.resman.service;

import com.alibaba.fastjson.JSONObject;
import com.ncloud.resman.entity.DeviceUnit;

import java.util.List;

/**
 * Created by shiqiang on 2017/8/15.
 */
public interface DeviceUnitService {
    int insertDeviceUnit(DeviceUnit deviceUnit);
    int deleteDeviceUnit(Long deviceId);
    List<JSONObject> getDeviceUnitById(Long deviceId);
    List<DeviceUnit> getDeviceUnitSnNum(String snNum);
    List<DeviceUnit> getDeviceUnitByType(Long deviceId,String unitType);
    List<DeviceUnit> getDeviceUnitByIpmi(String ipmiAddr,String unitType);
}
